package com.zx.sealeds;

/**
 * <p>
 * description:  <br>
 * create: 2025-05-16 15:01
 * </p>
 *
 * @author zhou  xun
 */
// ======================
// 1. final 子类：禁止进一步继承
// ======================
public final class Circle extends Shape {
    private final double radius;

    public Circle(double radius) {
        this.radius = radius;
    }

    @Override
    public double area() {
        return Math.PI * radius * radius;
    }
}
